package lang;

/**
 * Created by ZhaoYuJie on 2018/2/13.
 */
public class FloatTest {
    public static void main(String[] args) {
        float totalPrice= 2.3214f;
        System.out.println((float)(Math.round(totalPrice*100))/100);
    }
}
